﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;

namespace CarExam.AddQuest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < 100; i++)
            {
                this.Controls.Add(new Button());
            }
            //for (int i = 0; i < 400; i++)
            //{
            //    DBUtility.DbHelperSQL.ExecuteSql("INSERT INTO [dbo].[ItemBank]([itemcontent],[answer_a],[answer_b],[answer_c],[answer_d],[itemtype],[answer_y],[answer_n],[ZQDA])VALUES(@ic,@a,@b,@c,@d,@it,@y,@n,@zqda)",
            //        new SqlParameter[] {
            //            new SqlParameter("@ic","题号"+i.ToString()),
            //            new SqlParameter("@a","A"+i),
            //            new SqlParameter("@b","B"+i),
            //            new SqlParameter("@c","C"+i),
            //            new SqlParameter("@d","D"+i),
            //            new SqlParameter("@it",1),
            //            new SqlParameter("@y","Y"+i),
            //            new SqlParameter("@n","N"+i),
            //            new SqlParameter("@zqda",1)
            //        }
            //        );
            //}
        }
    }
}
